<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			//module js文件
			function foo(){
				console.log('foo');
			}
			function bar(){
				console.log('bar');
			}
			
			export {foo,bar};
			......
			//my_module.js文件
			export {foo,bar} from './module.js';
			//等价于
			//import {foo,bar} from 'my_module';
			//export {foo,bar};
			......
			//index.html文件
			import {foo,bar} from './my_ module.js'
			foo();

		</script>
	</body>
</html>
